/*
 * @Date: 2020-11-26 13:20:48
 * @LastEditors: 小枫
 * @description: description
 * @LastEditTime: 2020-11-26 13:30:07
 * @FilePath: \stu-nest\src\common\middleware\logger.middleware.ts
 */
import { Injectable, NestMiddleware } from '@nestjs/common';
import { Request, Response } from 'express';

@Injectable()
export class LoggerMiddleware implements NestMiddleware {
  use(req: Request, res: Response, next: () => void) {
    console.log(req.method);
    next();
  }
}
